﻿namespace Anley.DomainDrivenDesign.Contract.Infrastructure;

/// <summary>
/// 缓存仓储上下文类
/// </summary>
public class RedisRepositoryContext
    : IRedisRepositoryContext
{
    // 缓存连接
    public IConnectionMultiplexer Connection { get; protected set; }

    public RedisRepositoryContext(
        string connectionString)
    {
        Connection = ConnectionMultiplexer.Connect(connectionString);
    }
}